Purpose |
Parse a path/file name to extract component parts |
||||||||||
Syntax |
fil$ = PATHNAME$(director, filespec$) |
||||||||||
Remarks |
The PATHNAME$ function evaluates a text path/file text name, and returns a requested part of the name. The functionality is strictly one of string parsing alone. No attempt is made to find the file on disk. If you wish to scan for a particular file on disk, you should use the companion function PATHSCAN$. |
||||||||||
director |
This is one of the following words which is used to specify the requested part:
|
||||||||||
filespec$ |
A path/file name which does not necessarily exist on disk. |
||||||||||
See also |
|||||||||||
Example |
PATHNAME$(PATH, "C:\PB\XXX.TXT") ' returns "C:\PB\" PATHNAME$(NAME, "C:\PB\XXX.TXT") ' returns "XXX" PATHNAME$(NAMEX, "C:\PB\XXX.TXT") ' returns "XXX.TXT" PATHNAME$(EXTN, "C:\PB\XXX.TXT") ' returns ".TXT" |